<?php
/**
 * Created by PhpStorm.
 * User: hhcycj
 * Date: 2018\9\7 0007
 * Time: 15:04
 */


use Illuminate\Database\Capsule\Manager as Capsule;

// 自动导入
require '../vendor/autoload.php';

// 启用ORM
$capsule = new Capsule;
$capsule->addConnection(require '../config/database.php');
$capsule->bootEloquent();

// 添加路由，路由必须放在最后
require '../config/route.php';


